CC:=g++
srcs:=$(wildcard *.c)
objs:=$(patsubst %.c,%,$(srcs))
CFLAGS:=-g -Wall -I /usr/include/mysql/ -L /usr/lib64/mysql/ -lmysqlclient -std=c99 -lpthread -lcrypt -D _XOPEN_SOURCE=600
all:$(objs)
%:%.c
	$(CC) -o $@ $<
.PHONY:clean rebuild print
rebuild:clean all
clean:
	rm -rf $(objs)
print:
	@echo $(objs)
